package cn.yangliu.task.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.task")
public class TaskProperties {

    private String tableName="task";

    private boolean enableSocket = false;

    private int port = 1212;

    private String dialect="mysql";

    private String host = "127.0.0.1";

    private boolean enableTask=true;

    public String getDialect() {
        return dialect;
    }

    public void setDialect(String dialect) {
        this.dialect = dialect;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public boolean getEnableTask() {
        return enableTask;
    }

    public void setEnableTask(boolean enableTask) {
        this.enableTask = enableTask;
    }

    public boolean getEnableSocket() {
        return enableSocket;
    }

    public void setEnableSocket(boolean enableSocket) {
        this.enableSocket = enableSocket;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
}
